package com.bawei.module_home.state

import com.bawei.library_mvi.IState
import com.bawei.module_home.model.entity.SimpleTypeEntity
import com.bawei.module_home.model.entity.SimpleVideoEntity

/**
 * @Author : yaotianxue
 * @Time : On 2023/6/25 09:17
 * @Description : SimpleTypeState 状态
 */
sealed class SimpleVideoState:IState {
    /**
     * 成功获得推荐视频
     */
    data class RecommendSimpleVideo(val list:MutableList<SimpleVideoEntity>):SimpleVideoState()

    /**
     * 成功获得channelId视频
     */
    data class SimpleVideoByChannelId(val list:MutableList<SimpleVideoEntity>):SimpleVideoState()

    /**
     * 失败
     */
    data class Error(val exception:Throwable):SimpleVideoState()
    /**
     * 空
     */
    object Empty:SimpleVideoState()
    /**
     * 初始状态
     */
    object Init:SimpleVideoState()

}